home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 12474 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: inforamp.net!ts13-11
  2. From: rmorin@inforamp.net (Randy Charles Morin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Calling a HLP file from a program
  5. Date: Wed, 20 Mar 96 05:07:18 GMT
  6. Organization: MiddleWorld SoftWare
  7. Message-ID: <4io3qu$n9v@sam.inforamp.net>
  8. References: <4ig1c5$4pb@news2.nkn.net>
  9. NNTP-Posting-Host: ts34-09.tor.inforamp.net
  10. X-Newsreader: News Xpress Version 1.0 Beta #4
  11.  
  12. In article <4ig1c5$4pb@news2.nkn.net>,
  13.    wiersch@fastlane.net (Albert Wiersch) wrote:
  14. >I have written a help file and need to link it to the Help option in the pull 
  15. >down menus and in the dialog boxes. How can I call certain
  16. >sections of my helpfile from within my program?
  17.  
  18. I haven't written any help for Windows 95 yet, but the way we did it in 
  19. Windows 3.1, was we made a context header file...
  20.     context.h
  21.     ---------
  22.     #define FILE_NEW    1
  23.     #define FILE_OPEN    2
  24.     #define FILE_CLOSE    3
  25.     etc.
  26. then you included this file in the map section of your help project...
  27.     help.hpj
  28.     --------
  29.     [MAP]
  30.     #include <context.h>
  31. then you used the pre-processor defines as the topic identifier (aka context 
  32. strings) and finally you called...
  33.     #include <context.h>
  34.     WinHelp (hWnd, cszHelpFilename, HELP_CONTEXT, contextid);
  35.  
  36. I hope this helps
  37.  
  38. Agrivar
  39.